package com.gpy.hospital.cms.dao;

import com.gpy.hospital.cms.pojo.BingFang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface BingFangMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BingFang record);

    BingFang selectByPrimaryKey(Integer id);

    List<BingFang> selectAll();

    int updateByPrimaryKey(BingFang record);

    List<BingFang> getByLevel();

    List<BingFang> getByTopLevel(Integer id);

    int update(@Param("id") Integer id, @Param("email")String email, @Param("i") Integer i);

    List<BingFang> getByBingFang(String num);

    void updateByNull(Integer id);
}